* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #efefef;
  color: black;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
hr {
  height: 0;
  border: none;
  border-top: 1px solid #dedede;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

[data-x].active {
  outline: 10px solid red;
}
[data-x].offset {
  transform: translateY(100px);
}
[data-x] {
  transform: translateY(0);
  transition: all 0.5s;
}
.topNavBar {
  padding: 20px 0 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 1s;
  color: #b7b7b7;
}
.topNavBar.sticky {
  background: white;
  color: #3d4451;
  padding: 10px 0;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.topNavBar-inner {
  padding: 0 16px;
}
.topNavBar .logo {
  float: left;
  font-size: 24px;
  font-weight: bold;
  padding-top: 3px;
  padding-bottom: 4px;
}
.topNavBar .logo .rs {
  font-family: "Arial Black";
  color: #e6686a;
  margin-right: 4px;
}
.topNavBar .logo .card {
  font-family: "Arial Black";
  color: #9a9da2;
}
.topNavBar nav {
  float: right;
  padding-top: 5px;
}
.topNavBar nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topNavBar nav > ul > li {
  margin-left: 17px;
  margin-right: 17px;
  float: left;
  position: relative;
}
.topNavBar nav > ul > li > a {
  font-size: 12px;
  color: inherit;
  font-weight: bold;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  display: block;
  position: relative;
}
.topNavBar nav > ul > li.active > a::after,
.topNavBar nav > ul > li.highLight > a::after {
  content: "";
  display: block;
  position: absolute;
  height: 3px;
  top: 100%;
  left: 0;
  width: 100%;
  background: #e06567;
  animation: menuSlide 0.3s;
}
@keyframes menuSlide {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.topNavBar .sub-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  color: #3d4451;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.topNavBar .sub-menu:hover {
  cursor: pointer;
}
.topNavBar li.active > .sub-menu {
  display: block;
  animation: subMenuSlide 0.3s;
}
@keyframes subMenuSlide {
  0% {
    margin-right: 100%;
  }
  100% {
    margin-right: 0;
  }
}
.topNavBar .sub-menu > li {
  white-space: nowrap;
  padding: 5px 10px;
}
.banner {
  height: 515px;
  background: url(./img/rs-cover.jpg) center center no-repeat;
  background-size: cover;
}
.banner .mask {
  height: 515px;
  background: rgba(0, 0, 0, 0.7);
}

.userCard {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}
.userCard .welcome {
  position: relative;
  background: #e6686a;
  color: white;
  padding: 4px 16px;
  line-height: 22px;
  display: inline-block;
  border-radius: 3px;
}
.userCard .welcome .triangle {
  border: 10px solid transparent;
  width: 0px;
  border-left-color: #e6686a;
  border-top-width: 0;
  display: block;
  position: absolute;
  left: 4px;
  top: 100%;
}
.userCard .pictureAndText {
  padding: 50px;
}
.userCard .picture {
  float: left;
}
.userCard .text {
  float: left;
  margin-left: 65px;
  width: 470px;
}
.userCard .text h1 {
  margin-top: 28px;
}
.userCard .text hr {
  margin: 20px 0;
}
.userCard dl dt,
.userCard dl dd {
  float: left;
  padding: 5px 0;
}
.userCard dl dt {
  width: 30%;
  font-weight: bold;
}
.userCard dl dd {
  width: 70%;
  color: #9da8a7;
}

.userCard > footer.media {
  background: #e6686a;
  text-align: center;
}
.userCard > footer.media > a {
  display: inline-block;
  width: 40px;
  padding: 5px 0;
  line-height: 30px;
  border-radius: 50%;
  margin: 16px 0;
}
.userCard > footer.media > a:hover {
  background: #cf5d5f;
}
.userCard svg {
  width: 30px;
  height: 30px;
  fill: white;
  vertical-align: top;
}

body > main {
  margin-top: -350px;
}
body > main .downloadResume-wrapper {
  text-align: center;
}
body > main .downloadResume {
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  line-height: 16px;
  padding: 21px 55px;
  border: 1px solid #cdcfd1;
  background: #efefef;
  border-radius: 3px;
  color: #3d4451;
  margin: 32px 0;
  transition: box-shadow 0.3s;
}
body > main .downloadResume:hover {
  box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.5);
}
body > main .self-introduction {
  text-align: center;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

section.skills,
section.portfolio {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
}

section.skills > h2,
section.portfolio > h2,
section.message > h2 {
  text-align: center;
  color: #3d4451;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}
section.skills h3 {
  font-size: 14px;
  line-height: 1.1;
  padding-right: 48px;
  font-weight: normal;
}
section.skills > ol {
  background: white;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
  padding: 46px 50px 15px;
  margin-top: 35px;
}
section.skills > ol > li {
  float: left;
  width: 48%;
  box-sizing: border-box;
}
section.skills > ol > li:nth-child(even) {
  float: right;
}
section.skills .progressBar {
  height: 5px;
  background: #fae1e1;
  border-radius: 3px;
  margin: 5px 0 40px;
  overflow: hidden;
}
section.skills .progressBar > .progress {
  height: 100%;
  background: #e6686a;
  width: 70%;
  border-radius: 3px;
  transform: translateX(0);
  transition: all 0.3s;
}
section.skills.offset .progress {
  transform: translateX(-100%);
}

section.portfolio {
  max-width: 720px;
  text-align: center;
}
section.portfolio h2 {
  margin-bottom: 32px;
}

section.portfolio .swiper-container {
  margin-top: 32px;
  width: 668px;
  height: 501px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5);
}

section.portfolio .swiper-button-prev,
.swiper-button-next {
  background-color: white;
  width: 64px;
  height: 64px;
  right: 100%;
  left: auto;
  border-radius: 50%;
}
.swiper-button-next {
  left: 100%;
  right: auto;
}

section.message {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
}

section.message ol {
  margin-top: 35px;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}
section.message ol li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
